﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ECI.SSO.BizEntity;
using ECI.SSO.Common;

namespace ZhiAo.Management
{
    public class AjaxMenuInfo
    {
        /// <summary>
        /// 从当前用户的站点树中取特定站点的所有子站点(含该站点)
        /// </summary>
        /// <param name="functionId">特定站点id</param>
        /// <returns></returns>
        public static Function[] GetLowerFunctionsForUser(string functionId)
        {
            SsoServiceClient sso = new SsoServiceClient();
            Function []fun = sso.GetLowerFunctionsForUser(UserInfo.CurrentUserInfo.User.ID, functionId);
            sso.Close();
            return fun;
        }

       

    }
}
